package com.bird.generate.ddd.adapter.database.dataobj

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.bird.component.lang.common.annotation.NoArg

@NoArg
@TableName("generate_field")
data class FieldDO(
    @TableId(type = IdType.ASSIGN_ID)
    var id: Long? = null,
    //父级id
    var parentId: Long,
    //字段英文名称(驼峰)
    var enName: String,
    //字段名称
    var name: String,
    //字段类型
    var type: String?,
    //是否必填
    var required: Boolean,
    //是否相等判断
    var toEquals: Boolean,
    //字段描述
    var description: String? = null,
    //排序
    var sort: Int = 0
)